package com.edu.solr_news.bean;

import org.apache.solr.client.solrj.beans.Field;

import java.io.Serializable;

public class News implements Serializable{
    @Field("id")
    private String id;
    @Field("news_title")
    private String title;
    @Field("news_content")
    private String content;
    @Field("news_url")
    private String url;
    @Field("news_time")
    private String time;
    @Field("news_source")
    private String source;
    @Field("news_onclink")
    private int onclick;
    @Field("news_country")
    private String country;

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public int getOnclick() {
        return onclick;
    }

    public void setOnclick(int onclick) {
        this.onclick = onclick;
    }

    private String keyword;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "News{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", time='" + time + '\'' +
                ", source='" + source + '\'' +
                ", onclick=" + onclick +
                ", country='" + country + '\'' +
                ", keyword='" + keyword + '\'' +
                '}';
    }
}
